﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wicresoft.SMS.Data
{
    public interface IReportWebDataAccess
    {
        List<HistoryReport> QueryHistoryReport(DateTime StartTime,DateTime EndTime,queryFrequence Frequence);
        List<GroupReport> QueryGroupReport(DateTime StartTime, DateTime EndTime, int MaxShow);
        List<IndividualReprot> QueryIndividualReprot(int GroupId, DateTime StartTime, DateTime EndTime, int MaxShow);
        string GetDepartnameById(int DepartmentId);
        int GetTotalMessage(DateTime StartTime);
        int GetTotalFaliedMessage(DateTime StartTime);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="key"></param>
        /// <param name="page"></param>
        /// <param name="max"></param>
        /// <param name="starttime"></param>
        /// <param name="endtime"></param>
        /// <param name="ordertype">0.默认排序 / 1.逆序desc / 2.顺序asc</param>
        /// <returns></returns>
        List<UsersInfo> QueryUsesrReports(string key, int page, int max, DateTime starttime, DateTime endtime,int ordertype);
        int UserInfoPage(int maxshow,string key);
        //导出数据
        List<UsersInfo> Getdata(DateTime starttime, DateTime endtime); 
    }
}
